﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Xpom_Xpum__Integrated_Development_Environment.Model
{
    public class Template
    {
        public string TemplateNameEN { get; set; }

        public string TemplateNameRU { get; set; }

        public string TemplateName
        {
            get
            {
                if (Thread.CurrentThread.CurrentCulture.Name == "ru-RU")
                {
                    return TemplateNameRU != null ? TemplateNameRU : TemplateNameEN;
                }
                else
                {
                    return TemplateNameEN;
                }
            }
            set
            {
                if (Thread.CurrentThread.CurrentCulture.Name == "ru-RU")
                {
                    if (TemplateNameRU != null)
                        TemplateNameRU = value;
                    else
                        TemplateNameEN = value;
                }
                else
                {
                    TemplateNameEN = value;
                }
            }
        }

        public string TemplateDirectory { get; set; }

        public string TemplateFilesDirectory { get; set; }
    }
}
